# enumerate: 在循环列表时，增加下标

names = ["张三", "李四", "王五"]

for name in names:
    print(name)

print(list(enumerate(names)))

# 带下标循环
for index, name in enumerate(names):
    print(index, name)
